import os

DRIVER_DIR = os.path.dirname(os.path.abspath(__file__))


def get_webdriver(driver_type, driver_version):
    path = os.path.join(DRIVER_DIR, driver_type, 'driver_%s' % driver_version, 'chromedriver.exe')
    if os.path.isfile(path):
        return path


# print(get_webdriver('Chrome', '79'))
